@charset "utf-8";
* {
    margin: 0;
    padding: 0;
    font-size: 0;
    list-style: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    height: 100%;
    background-color: #bf0c21;
    background-image: url(../img/shading.png);
}

//弹窗一
.popupW {
    background-image: url(../img/shading2.png);
    background-repeat: repeat;
    background-size: cover;
    position: absolute;
    z-index: 1;
    //糖果
    .sugar {
        position: absolute;
        img {
            position: absolute;
            width: 0.5rem;
            height: 0.6rem;
            animation-name: fallout;
            animation-direction: initial;
            animation-timing-function: linear;
            opacity: 0;
            z-index: 3;
        }
        //糖果下落动画
        @keyframes fallout {
            0% {
                transform: translateY(0rem) rotate(30deg);
                opacity: 0;
            }
            25% {
                transform: translateY(0.75rem) rotate(45deg);
            }
            50% {
                transform: translateY(2rem) rotate(75deg);
            }
            75% {
                transform: translateY(4rem) rotate(120deg);
                opacity: 1;
            }
            100% {
                transform: translateY(7rem) rotate(180deg);
                opacity: 0;
            }
        }
        img:nth-child(1) {
            top: 0.5rem;
            left: 0.5rem;
            animation-duration: 1.5s;
            animation-delay: 1s;
        }
        img:nth-child(2) {
            top: 0.5rem;
            left: 1.5rem;
            animation-duration: 0.5s;
            animation-delay: 0.5s;
        }
        img:nth-child(3) {
            top: 0.5rem;
            left: 2.5rem;
            animation-duration: 2.5s;
            animation-delay: 0s;
        }
        img:nth-child(4) {
            top: 0.5rem;
            left: 3.5rem;
            animation-duration: 1s;
            animation-delay: 1s;
        }
        img:nth-child(5) {
            top: 0.5rem;
            left: 4.5rem;
            animation-duration: 2s;
            animation-delay: 0.5s;
        }
        img:nth-child(6) {
            top: 0.5rem;
            left: 5.5rem;
            animation-duration: 1.5s;
            animation-delay: 0s;
        }
        img:nth-child(7) {
            top: 1.5rem;
            left: 1rem;
            animation-duration: 2.5s;
            animation-delay: 1s;
        }
        img:nth-child(8) {
            top: 1.5rem;
            left: 2rem;
            animation-duration: 2.5s;
            animation-delay: 0.5s;
        }
        img:nth-child(9) {
            top: 1.5rem;
            left: 3rem;
            animation-duration: 1.5s;
            animation-delay: 0s;
        }
        img:nth-child(10) {
            top: 1.5rem;
            left: 4rem;
            animation-duration: 1s;
            animation-delay: 1s;
        }
        img:nth-child(11) {
            top: 1.5rem;
            left: 5rem;
            animation-duration: 1.5s;
            animation-delay: 0.5s;
        }
        img:nth-child(12) {
            top: 1rem;
            left: 0.75rem;
            animation-duration: 2s;
            animation-delay: 0s;
        }
        img:nth-child(13) {
            top: 1rem;
            left: 1.25rem;
            animation-duration: 1.5s;
            animation-delay: 1s;
        }
        img:nth-child(14) {
            top: 1rem;
            left: 1.75rem;
            animation-duration: 1s;
            animation-delay: 0.5s;
        }
        img:nth-child(15) {
            top: 1rem;
            left: 2.25rem;
            animation-duration: 2.5s;
            animation-delay: 0s;
        }
        img:nth-child(16) {
            top: 1rem;
            left: 2.75rem;
            animation-duration: 2s;
            animation-delay: 1s;
        }
        img:nth-child(17) {
            top: 1rem;
            left: 3.25rem;
            animation-duration: 2s;
            animation-delay: 0.5s;
        }
        img:nth-child(18) {
            top: 1rem;
            left: 3.75rem;
            animation-duration: 1s;
            animation-delay: 0s;
        }
        img:nth-child(19) {
            top: 1rem;
            left: 4.25rem;
            animation-duration: 2s;
            animation-delay: 1s;
        }
        img:nth-child(20) {
            top: 1rem;
            left: 4.75rem;
            animation-duration: 2.5s;
            animation-delay: 0.5s;
        }
        img:nth-child(21) {
            top: 1rem;
            left: 5.25rem;
            animation-duration: 1s;
            animation-delay: 0s;
        }
    }
    //初始弹窗样式
    .popupWindow {
        width: 4.2rem;
        height: 2.5rem;
        background-color: #e7c598;
        border-radius: 0.1rem;
        overflow: hidden;
        position: absolute;
        left: 1.1rem;
        top: 30%;
        .title {
            width: 2.22rem;
            height: 0.4rem;
            margin: 0.2rem auto;
            text-align: center;
            overflow: hidden;
            p {
                color: #bf0c21;
                font-size: 0.2rem;
                line-height: 0.2rem;
                margin-top: 0.1rem;
            }
        }
        .chooseSeat,
        .rank,
        .application {
            background-color: #bf0c21;
            width: 2.22rem;
            height: 0.4rem;
            border-radius: 0.08rem;
            margin: 0.06rem auto;
            text-align: center;
            cursor: pointer;
            overflow: hidden;
            a {
                display: block;
                color: #e7c598;
                font-size: 0.2rem;
                line-height: 0.2rem;
                margin-top: 0.1rem;
            }
            p {
                color: #e7c598;
                font-size: 0.2rem;
                line-height: 0.2rem;
                margin-top: 0.1rem;
            }
        }
        //关闭按钮
        .closePopup {
            width: 0.36rem;
            height: 0.36rem;
            border-radius: 50%;
            background-color: #bf0c21;
            position: absolute;
            top: 0.15rem;
            right: 0.2rem;
            cursor: pointer;
            i {
                color: #e7c598;
                display: block;
                font-size: 0.2rem;
                text-align: center;
                margin-top: 0.07rem;
            }
        }
    }
}

//分享弹窗
.popupW2 {
    background-image: url(../img/shading2.png);
    background-repeat: repeat;
    background-size: cover;
    position: absolute;
    z-index: 2;
    display: none;
    @keyframes popupJump {
        0% {
            transform: scale(1);
            opacity: 0;
        }
        25% {
            transform: scale(1.2);
        }
        50% {
            transform: scale(0.8);
        }
        75% {
            transform: scale(1.1);
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
    //分享弹窗
    .popupWindow2 {
        width: 4.2rem;
        height: 2.5rem;
        background-color: #e7c598;
        border-radius: 0.1rem;
        overflow: hidden;
        position: absolute;
        left: 1.1rem;
        top: 30%;
        animation-name: popupJump;
        animation-duration: 0.5s;
        opacity: 0;
        animation-fill-mode: forwards;
        p {
            text-align: center;
            margin-top: 1.1rem;
            font-size: 0.3rem;
            color: #bf0c21;
        }
        //关闭按钮
        .closePopup {
            width: 0.36rem;
            height: 0.36rem;
            border-radius: 50%;
            background-color: #bf0c21;
            position: absolute;
            top: 0.15rem;
            right: 0.2rem;
            cursor: pointer;
            i {
                color: #e7c598;
                display: block;
                font-size: 0.2rem;
                text-align: center;
                margin-top: 0.07rem;
            }
        }
    }
}

//总页面
.web {
    width: 6.4rem;
    overflow: hidden;
    .text {
        text-align: center;
        margin-top: 0.3rem;
        h3 {
            font-size: 0.3rem;
            color: #e7c598;
        }
    }
    //主桌
    .host {
        margin: 0.5rem auto 0 auto;
        width: 2.2rem;
        height: 2.47rem;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        transition-duration: 1s;
        //主圆桌
        .tablePlus {
            width: 1.22rem;
            height: 1.22rem;
            border-radius: 50%;
            margin: 0.59rem auto;
            background-color: #e7c598;
            text-align: center;
            overflow: hidden;
            box-shadow: 0.02rem 0.02rem 0.1rem 0.01rem #000000;
            p {
                font-size: 0.2rem;
                line-height: 0.2rem;
                margin-top: 0.45rem;
                color: #bf0c21;
            }
        }
        //主桌椅
        .chairPlus {
            width: 0.48rem;
            height: 0.48rem;
            border-radius: 50%;
            background-color: #e7c598;
            text-align: center;
            overflow: hidden;
            position: absolute;
            box-shadow: 0.02rem 0.02rem 0.1rem 0.01rem #000000;
            i {
                display: block;
                font-size: 0.2rem;
                line-height: 0.2rem;
                margin-top: 0.1rem;
                color: orangered;
            }
        }
        .chairPlus:nth-child(2) {
            top: 0rem;
            left: 0.86rem;
        }
        .chairPlus:nth-child(3) {
            top: 0.5rem;
            left: 0.07rem;
        }
        .chairPlus:nth-child(4) {
            top: 0.5rem;
            right: 0.07rem;
        }
        .chairPlus:nth-child(5) {
            bottom: 0.5rem;
            left: 0.07rem;
        }
        .chairPlus:nth-child(6) {
            bottom: 0.5rem;
            right: 0.07rem;
        }
        .chairPlus:nth-child(7) {
            bottom: 0.07rem;
            right: 0.86rem;
        }
    }
    //客桌盒子
    .guestbox {
        width: 3.2rem;
        height: 2rem;
        overflow: hidden;
        display: inline-block;
        transition-duration: 1s;
        //客桌
        .guest {
            cursor: pointer;
            width: 1.6rem;
            height: 1.75rem;
            position: relative;
            margin: 0.13rem auto;
            padding-top: 0.44rem;
            overflow: hidden;
            //桌子
            .table {
                width: 0.86rem;
                height: 0.86rem;
                border-radius: 50%;
                background-color: #e7c598;
                text-align: center;
                overflow: hidden;
                margin: 0 auto;
                box-shadow: 0.02rem 0.02rem 0.1rem 0.01rem #000000;
                p {
                    font-size: 0.16rem;
                    line-height: 0.16rem;
                    margin-top: 0.35rem;
                    color: #bf0c21;
                }
            }
            //椅子
            .chair {
                width: 0.34rem;
                height: 0.34rem;
                border-radius: 50%;
                background-color: #e7c598;
                text-align: center;
                overflow: hidden;
                position: absolute;
                box-shadow: 0.01rem 0.01rem 0.01rem #000000;
                animation-iteration-count: infinite;
                animation-duration: 1s;
                i {
                    display: block;
                    font-size: 0.15rem;
                    line-height: 0.15rem;
                    margin-top: 0.08rem;
                    color: orangered;
                }
            }
            @keyframes chairsJump {
                25% {
                    transform: rotate(10deg);
                }
                50% {
                    transform: scale(1.2) rotate(-10deg);
                }
                75% {
                    transform: rotate(10deg);
                }
                100% {
                    transform: scale(1) rotate(-10deg);
                }
            }
            .chair:nth-child(2) {
                top: 0.03rem;
                left: 0.63rem;
            }
            .chair:nth-child(3) {
                top: 0.33rem;
                left: 0.03rem;
            }
            .chair:nth-child(4) {
                top: 0.33rem;
                right: 0.03rem;
            }
            .chair:nth-child(5) {
                bottom: 0.33rem;
                left: 0.03rem;
            }
            .chair:nth-child(6) {
                bottom: 0.33rem;
                right: 0.03rem;
            }
            .chair:nth-child(7) {
                bottom: 0.03rem;
                left: 0.63rem;
            }
        }
    }
}

//底部分享框
.sharebox {
    position: relative;
    width: 6.4rem;
    height: 1rem;
    .shareLogo {
        width: 3.2rem;
        height: 0.5rem;
        position: absolute;
        bottom: 0.4rem;
        left: 1.6rem;
        overflow: hidden;
        span {
            display: block;
            width: 2.5rem;
            height: 0.3rem;
            position: absolute;
            top: 0.08rem;
            left: 0.37rem;
            font-size: 0.3rem;
            line-height: 0.3rem;
            background-color: #bf0c21;
            color: #e7c598;
            cursor: pointer;
        }
        img {
            width: 100%;
            height: 100%;
        }
        .yinY {
            width: 0.25rem;
            height: 0.53rem;
            position: absolute;
            top: 0;
            left: -0.35rem;
            background: #fff;
            opacity: 0.3;
            transform: skewX(-20deg);
            animation-name: myYin;
            animation-duration: 3.6s;
            animation-iteration-count: 1;
            animation-play-state: running;
            animation-iteration-count: infinite;
        }
        @keyframes myYin {
            0% {
                transform: translateX(0PX) skewX(-20deg);
            }
            10% {
                transform: translateX(580PX) skewX(-20deg);
            }
            20%,
            70%,
            80%,
            90% {
                transform: translateX(0PX) skewX(-20deg);
            }
            100% {
                transform: translateX(0PX) skewX(-20deg);
            }
        }
    }
    //回到主页面按钮
    .indexLogo {
        width: 0.4rem;
        height: 0.4rem;
        border-radius: 50%;
        background-color: #e7c598;
        position: absolute;
        right: 0.4rem;
        bottom: 0.45rem;
        text-align: center;
        overflow: hidden;
        i {
            display: block;
            font-size: 0.3rem;
            color: #bf0c21;
            margin-top: 0.03rem;
        }
    }
}

//右角音乐键
.musicButton {
    cursor: pointer;
    .musicLogo {
        width: 0.4rem;
        height: 0.4rem;
        border-radius: 50%;
        background-color: #e7c598;
        position: absolute;
        right: 0.4rem;
        top: 0.3rem;
        text-align: center;
        overflow: hidden;
        i {
            display: block;
            font-size: 0.3rem;
            color: #bf0c21;
            margin-top: 0.03rem;
        }
    }
    .rotateBtn {
        animation-name: rotateB;
        animation-iteration-count: infinite;
        animation-duration: 2s;
        animation-play-state: running;
        animation-timing-function: linear;
    }
    @keyframes rotateB {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }
}

//选座信息
.seatInfo {
    text-align: center;
    opacity: 0;
    p {
        font-size: 0.3rem;
        color: #e7c598;
    }
}